from odoo import api, models, fields
from odoo.tools import date_utils


class nbd_productinfo(models.Model):
    _name = 'nbd.productinfo'
    _description = 'NBD产品信息'

    name = fields.Char(string='产品名称')
    description = fields.Char(string='产品描述')

    product_type_id = fields.Many2one(
        'nbd.product.type',
        string='产品类别',
        ondelete='cascade',
        required=True
    )
    task_id = fields.Many2one(
        comodel_name='project.task',
        string='taskid'
    )
